Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

interface System.​Collections.​Generic.​IReadOnlyDictionary<​TKey, TValue>

Assembly: System.Runtime

Implemented Interfaces

Represents a generic read-only collection of key/value pairs.

Properties

TValue
Item
IEnumerable<​TKey>
Keys
Gets an enumerable collection that contains the keys in the read-only dictionary.
IEnumerable<​TValue>
Values
Gets an enumerable collection that contains the values in the read-only dictionary.

Methods

bool
ContainsKey​(TKey key)
Determines whether the read-only dictionary contains an element that has the specified key.
Returns <see langword="true" /> if the read-only dictionary contains an element that has the specified key; otherwise, <see langword="false" /> .
key The key to locate.
bool
TryGetValue​(TKey key, TValue& value)